import request from '@/utils/request'

// 查询院校展示列表
export function listProfessions(query) {
  return request({
    url: '/degree/professions/list',
    method: 'get',
    params: query
  })
}

// 查询院校展示详细
export function getProfessions(id) {
  return request({
    url: '/degree/professions/' + id,
    method: 'get'
  })
}

// 新增院校展示
export function addProfessions(data) {
  return request({
    url: '/degree/professions',
    method: 'post',
    data: data
  })
}

// 修改院校展示
export function updateProfessions(data) {
  return request({
    url: '/degree/professions',
    method: 'put',
    data: data
  })
}

// 删除院校展示
export function delProfessions(id) {
  return request({
    url: '/degree/professions/' + id,
    method: 'delete'
  })
}
